<script src="${rc.getContextPath()}/manage/js/dwzCustomJs/dwz.custom.advancedquery.js?v=${ver}" type="text/javascript"></script>
<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)">
<div class="pageHeader">
    <div class="searchBar">
				<ul class="searchContent">
				<li ><label>
                        <@label key='code.C,colon'>编号：
                    </@label></label>
                    <input type="text" name="fuzzyTemplateCode" value="${condition.fuzzyTemplateCode!''}"/></li>
                <li ><label>
                        <@label key='desc.C,colon'>描述：
                    </@label></label>
                    <input type="text" name="fuzzyTemplateText" value="${condition.fuzzyTemplateText!''}"/></li>
				<li ><label>
                        <@label key='andonType.C,colon'>ANDON类型：
                    </@label></label>
                    <select name="andonTypeCode">
                       <option value="" ><@label key="all.C">所有</@label></option>
                       <#list andonTypeList  as andonType>
                       <option value="${andonType.andonTypeCode}"<#if andonType.andonTypeCode == condition.andonTypeCode> selected="selected"</#if>>${andonType.typeText}</option>
                        </#list>
                    </select>
				<li class="query">
	                <div class="buttonActive">
	                    <div class="buttonContent">
	                        <button type="submit" name="btnQuery"><@label key="query.B">查询</@label></button>
	                    </div>
	                </div>
	            	</li>
				</ul>
    </div>
</div>
</form>

<div class="pageContent">
    <div class="panelBar">
    	<ul class="toolBar">
    	
    	   <@buttonRight menuCode="ANDONTEMPLATE_ADD" labelKey="add.B" defalutName="新增">
            <li><a class="add" target="dialog" mask="true" width="635" height="550" href="${rc.getContextPath()}/manage/andonTemplate/toAddAndonTemplate?navTabId=${navTabId!''}"><span><@label key="add.B">新增</@label></span></a></li>
            </@buttonRight>
            <@buttonRight menuCode="ANDONTEMPLATE_EDIT" labelKey="edit.B" defalutName="编辑">
            <li>
            	<a class="edit" target="dialog" mask="true" width="635" height="650" href="${rc.getContextPath()}/manage/andonTemplate/toEditAndonTemplate?templateCode={andonTemplate_id}&navTabId=${navTabId!''}"><span><@label key="edit.B">编辑</@label></span></a>
            </li>
            </@buttonRight>
            <@buttonRight menuCode="ANDONTEMPLATE_VIEW" labelKey="view.B" defalutName="详情">
            <li>
            	<a class="icon" target="dialog" mask="true" width="635" height="650" href="${rc.getContextPath()}/manage/andonTemplate/viewAndonTemplate?templateCode={andonTemplate_id}&navTabId=${navTabId!''}"><span><@label key="view.B">详情</@label></span></a>
            </li>
            </@buttonRight>
            <@buttonRight menuCode="ANDONTEMPLATE_DEL"  labelKey="delete.B" defalutName="删除">
            <li>
            	<a class="delete" target="selectedTodo" posttype="string" rel="ids" href="${rc.getContextPath()}/manage/andonTemplate/deleteAndonTemplateBatch?navTabId=${navTabId!''}" callback="batchjobAjaxDone" title="<@label key='confirmDelandonTemplate.M'>确认要删除选中的暗灯模板吗？</@label>"><span><@label key="delete.B">删除</@label></span></a>
            </li>
            </@buttonRight>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="134">
        <thead>
            <tr>
                
                <th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
                <th width="40"><@label key="serialNumber.C">序号</@label></th>
                    <th width="80" orderField="templateCode" <#if (page.orderField?? && page.orderField =="templateCode")>class="${page.orderDirection!''}"</#if>><@label key='andonTemplateCode.C'>ANDON模板编号</@label></th>
                    <th width="80" orderField="templateText" <#if (page.orderField?? && page.orderField =="templateText")>class="${page.orderDirection!''}"</#if>><@label key='desc.C'>描述</@label></th>
                    <th width="80" orderField="andonTypeCode" <#if (page.orderField?? && page.orderField =="andonTypeCode")>class="${page.orderDirection!''}"</#if>><@label key='andonType.C'>ANDON类型</@label></th>
            </tr>
        </thead>
        <tbody>
        <#if page??><#if (page.data?size>0)> <#list page.data as andonTemplate>
            <tr target="andonTemplate_id" rel="${andonTemplate.templateCode!''}">
                <td><input name="ids" value="${andonTemplate.templateCode!''}" type="checkbox"></td>
                        <td>${page.startRow + andonTemplate_index}</td>
                        <td>${andonTemplate.templateCode!}</td>
                        <td>${andonTemplate.templateText!}</td>
                		<td>${andonTemplate.andonTypeText!}</td>
            </tr>
        </#list>
        <#else>
        <tr target="andonTemplate_id">
                <td colspan="5" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
        </tr>
        </#if>
        <#else>
        <tr target="andonTemplate_id">
                <td colspan="5" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
        </tr>
        </#if>
        </tbody>
    </table>
    <#include "/common/panelBar.html">
</div>
<script type="text/javascript">
(function($){
	var page = DWZ.context();
})(jQuery);
</script>
